package vn.vfriends.soffice.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.soffice.entity.Group;

/**
 *
 * @author chaungoctuan@gmail.com
 */
public interface GroupService extends Serializable {

    void create(Group group) throws Exception;

    void edit(Group group) throws Exception;

    void remove(Group group) throws Exception;

    Group find(Object id);

    List<Group> findAll();
    
    Group findByCode(String code);
    
    Group findByName(String name);

    List<Group> findRange(int[] range);

    int count();

    public List<Group> findByURL(String url);
}
